﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ImobitechModel.com.Constantes;
using ImobitechModel.com.Controller;

namespace Imobitech.Anuncio
{
    public partial class cadastroPlano : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Click(object sender, EventArgs e)
        {
            IDictionary<string, string> plan = new Dictionary<string, string>();
            plan.Add(NomeCampoConstantes.campo_planName, txtName.Text);
            plan.Add(NomeCampoConstantes.campo_planValue, txtValue.Text);
            plan.Add(NomeCampoConstantes.campo_planDateStart, txtDtStart.Text);
            plan.Add(NomeCampoConstantes.campo_planDateFinish, txtDtFinish.Text);

            ControladorPlan cg = new ControladorPlan();

            Object objeto = cg.insertPlan(plan);
        }
    }
}